<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
	<title>Cadastro de Usuários</title>
</h:head>

<h:body>

	<h1>Cadastro de Usuários</h1>
	
	<h:form id="form1">
		<h:messages/>
	
		<h:panelGrid columns="2">
			<h:outputLabel value="Nome:" for="nome" />
			<h:inputText id="nome" label="Nome" value="#{usuarioBean.nome}" required="true"/>
	
			<h:outputLabel value="Email:" for="email" />
			<h:inputText id="email" label="Email" value="#{usuarioBean.email}" />
			
			<h:outputLabel value="Senha:" for="senha" />
			<h:inputSecret id="senha" label="Senha" value="#{usuarioBean.senha}" required="true"/>
			
			<h:outputLabel value="Confirmar Senha:" for="confirmarSenha" />
			<h:inputSecret id="confirmarSenha" label="Confirmar Senha" 
				value="#{usuarioBean.confirmaSenha}" required="true"/>
				
			<h:commandButton action="#{usuarioBean.salvar}" value="Salvar"  immediate="false" />
		</h:panelGrid>

	</h:form>
</h:body>
</html>